<!DOCTYPE html>
<html lang="en">
  <head>
      <meta charset="UTF-8">
      <title>练习1</title>
    <script type="text/javascript">

      let cat = {
        name:'jack',
        age:10
      }
      //使用模板字符串显示cat信息
      //先对象解构
      let {name, age} = cat;
      //再输出
      let info = `cat对象的信息: name-${name}, age-${age}`;
      console.log(info);
    </script>
  </head>
  <body>

  </body>
</html>